package com.zjy.heath_ms.service.impl;

import com.zjy.heath_ms.mapper.MenuMapper;
import com.zjy.heath_ms.pojo.Menu;
import com.zjy.heath_ms.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目名 heath_ms
 * 类名  SystemServiceImpl
 * 作者 lzq
 * 创建时间  2025/5/10 18:17
 */
@Service
public class SystemServiceImpl implements SystemService {
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> getMenusByUserId(Integer id) {
        return menuMapper.selectMenuByUserIdWithTree(id);
    }
}
